
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";


/** 城市表 */
const schema = MongooseFactory.Schema({
    id: {
        type: String
    },
    value: {
        type: String
    },
    lable: {
        type: String
    },
    children: [{
        type: Schema.Types.Mixed
    }]
});

/** 城市表 */
const Mainschema = MongooseFactory.Schema({
    id: {
        type: String
    },
    value: {
        type: String
    },
    lable: {
        type: String
    },
    children: [schema]
});



export const cityModel = MongooseFactory.Model("city", schema);